package wkt.basic;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class Basic {
    private Long id;
    private Long parentId;
    private String name;
    private String code;
    private String type; //CENCI/ZHUANYE/KEMU
    private int orders;
    private String state = "NORMAL";
    private String path;
    private List<Basic> children;

    public Basic(Long id) {
        this.id = id;
    }

    public Basic(Long id, String name) {
        this.id = id;
        this.name = name;
    }
}
